package com.example.ntier.model.dal;

import java.sql.SQLException;
import java.util.List;

import com.example.ntier.model.entity.GenericEntity;

public interface GenericDAL<K, E extends GenericEntity<K>> {

	public abstract boolean insert(E entity) throws SQLException;

	public abstract boolean update(E entity) throws SQLException;

	public abstract boolean delete(E entity) throws SQLException;

	public abstract E findById(K id) throws SQLException;

	public abstract List<E> getAll() throws SQLException;

	public abstract int getCount() throws SQLException;

}
